package com.zhonghui.mes.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhonghui.common.annotation.Excel;
import com.zhonghui.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 制造执行MES-质量管理-来料检验
对象 mes_material_inspector
 * 
 * @author zhonghui
 * @date 2024-04-18
 */
public class MesMaterialInspector extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 流水号 */
    @Excel(name = "流水号")
    private String serialNumber;

    /** 领料id */
    @Excel(name = "领料id")
    private Long applyId;

    /** 物料id */
    @Excel(name = "物料id")
    private Long materialId;

    /** 抽检数量 */
    @Excel(name = "抽检数量")
    private Long sampleQuantity;

    /** 需求数量 */
    @Excel(name = "需求数量")
    private Long dosage;

    /** 已领数量 */
    @Excel(name = "已领数量")
    private Long receivedQuantity;

    /** 质检标准id */
    @Excel(name = "质检标准id")
    private Long inspectionId;

    /** 检验值 */
    @Excel(name = "检验值")
    private Long inspectionValue;

    /** 检验结果 */
    @Excel(name = "检验结果")
    private Long result;

    /** 检验人id */
    @Excel(name = "检验人id")
    private Long checkUserId;

    /** 检验时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检验时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inspectorTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSerialNumber(String serialNumber) 
    {
        this.serialNumber = serialNumber;
    }

    public String getSerialNumber() 
    {
        return serialNumber;
    }
    public void setApplyId(Long applyId) 
    {
        this.applyId = applyId;
    }

    public Long getApplyId() 
    {
        return applyId;
    }
    public void setMaterialId(Long materialId) 
    {
        this.materialId = materialId;
    }

    public Long getMaterialId() 
    {
        return materialId;
    }
    public void setSampleQuantity(Long sampleQuantity) 
    {
        this.sampleQuantity = sampleQuantity;
    }

    public Long getSampleQuantity() 
    {
        return sampleQuantity;
    }
    public void setDosage(Long dosage) 
    {
        this.dosage = dosage;
    }

    public Long getDosage() 
    {
        return dosage;
    }
    public void setReceivedQuantity(Long receivedQuantity) 
    {
        this.receivedQuantity = receivedQuantity;
    }

    public Long getReceivedQuantity() 
    {
        return receivedQuantity;
    }
    public void setInspectionId(Long inspectionId) 
    {
        this.inspectionId = inspectionId;
    }

    public Long getInspectionId() 
    {
        return inspectionId;
    }
    public void setInspectionValue(Long inspectionValue) 
    {
        this.inspectionValue = inspectionValue;
    }

    public Long getInspectionValue() 
    {
        return inspectionValue;
    }
    public void setResult(Long result) 
    {
        this.result = result;
    }

    public Long getResult() 
    {
        return result;
    }
    public void setCheckUserId(Long checkUserId) 
    {
        this.checkUserId = checkUserId;
    }

    public Long getCheckUserId() 
    {
        return checkUserId;
    }
    public void setInspectorTime(Date inspectorTime) 
    {
        this.inspectorTime = inspectorTime;
    }

    public Date getInspectorTime() 
    {
        return inspectorTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("serialNumber", getSerialNumber())
            .append("applyId", getApplyId())
            .append("materialId", getMaterialId())
            .append("sampleQuantity", getSampleQuantity())
            .append("dosage", getDosage())
            .append("receivedQuantity", getReceivedQuantity())
            .append("inspectionId", getInspectionId())
            .append("inspectionValue", getInspectionValue())
            .append("result", getResult())
            .append("checkUserId", getCheckUserId())
            .append("inspectorTime", getInspectorTime())
            .append("remark", getRemark())
            .toString();
    }
}
